<?php

namespace App\Http\Controllers;

use App\model\Park;
use Illuminate\Http\Request;

class ParkController extends Controller
{
    public function detail($id){
        $park=Park::with(['parkType','parkFormat','workshop'=>function($query){
            $query->with('industry','propertyType')->take(4);
        }])->where('id',$id)->first();
        return view('park',compact('park'));
    }
}
